package ar.edu.itba.it.raytracer.scene

import ar.edu.itba.it.raytracer.engine.{Ray, Color}

object SceneObject {
  def create(geom: Geom, material: Material) = new SceneObject(geom, material, false)
  def light(geom: Geom, color: Color) = new SceneObject(geom, Material(color, 0, 1, 1), true) 
}

class SceneObject(val geom: Geom, val material: Material, val light: Boolean) {
  def intersect(ray: Ray) = geom.intersect(ray)
}